﻿<Page
    x:Class="DataFormatsExample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:DataFormatsExample"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Margin="10"
                    Orientation="Horizontal">
            <Button x:Name="Parse"
                    Content="Transform XML to JSON"                
                    Click="Parse_OnClick"/>
            <Button x:Name="Transform"
                    Content="Transform XML with XSLT"
                    Click="Transform_OnClick"></Button>
        </StackPanel>
        <TextBlock x:Name="TransformedText"
                   HorizontalAlignment="Stretch"
                   VerticalAlignment="Stretch"
                   Grid.Row="1"
                   Style="{StaticResource SubheaderTextBlockStyle}"
                   TextWrapping="Wrap"
                   Text="Click the button..."/>
    </Grid>
</Page>
